package com.kuang.service;

import com.kuang.dao.UserDao;
import com.kuang.dao.UserDaoImpl;
import com.kuang.dao.UserDaoMysqlImpl;

public class UserServiceImpl implements UserService {
    private UserDao dao = new UserDaoMysqlImpl();

    //利用set进行动态的值得注入
    public void setUserDao(UserDao dao){
        this.dao=dao;
    }

    @Override
    public void getUser() {
        dao.getUser();
    }
}
